Discovery for token secured routing

ABSTRACT

Systems and methods for token secured routing and discovery in token secured routing are disclosed. An inbound routing table is maintained. A communication link is established with a second node via a first port. A discovery packet is sent to the second node via the first port. A token is generated for communication with the second node. A first inbound routing entry is added to the inbound routing table, wherein the first inbound routing entry maps the first token state to the second node.

CROSS-REFERENCE TO RELATED APPLICATIONS §

This application claims the benefit of U.S. Provisional Application No.62/888,780, filed Aug. 19, 2019, which is incorporated by referenceherein in its entirety.

TECHNICAL FIELD

This application is related data transportation. In particular, thisapplication is related to point-to-point data transportation.

BACKGROUND

There are countless situations where a network of different nodes (e.g.,hardware nodes, software nodes, or a mix of hardware and software nodesmay exchange data. Nodes may generate data and/or may consume data. Oneexample of such a situation is a sensor network where different sensornodes generate data (e.g., sensor data) and transport that data to anode that includes an application that processes the data and/orcommunicates the data to another device (a server via the internet, forexample). In these situations, there is a need to transport data fromone point to another point. Point to point data transportation, however,is complicated when the network of nodes is reconfigurable on the fly,when nodes discover connected neighboring nodes, and when nodes maycommunicate over diverse network subnets.

SUMMARY

In a first aspect, the disclosure provides a method for communication bya first node. The method includes maintaining an inbound routing table;establishing a communication link with a second node via a first port;sending a discovery packet to the second node via the first port,wherein the discovery packet comprises a token value, and wherein thetoken value comprises a platform token value; generating a token forcommunication with the second node, wherein the token has a first tokenvalue; identifying a first portion of the first token value, wherein thefirst portion of the first token value corresponds to a first tokenstate of the token; and adding a first inbound routing entry to theinbound routing table, wherein the first inbound routing entry maps thefirst token state to the second node.

In a second aspect, the disclosure provides that the method furtherincludes receiving a key exchange request from the second node;negotiating an encryption key with the second node; negotiating asession nonce with the second node; and negotiating a position offsetwith the second node, wherein the token is generated based on thesession nonce and the position offset, and wherein the token iscryptographically secured using the encryption key.

In a third aspect, the disclosure provides that the method furtherincludes maintaining an outbound routing table; adding a first outboundrouting entry to the outbound routing table, wherein the first outboundrouting entry maps the second node to the first token state; and addinga second outbound routing entry to the outbound routing table, whereinthe second outbound routing entry maps the first token state to thefirst port.

In a fourth aspect, the disclosure provides that the method furtherincludes obtaining a first message for the second node; identifying thefirst token state based on the first outbound routing entry; determininga first token value based on the first token state; identifying a firstportion of the first token value; identifying a second portion of thefirst token value; encrypting the first message using the second portionof the first token value; generating a first packet comprising a firsttoken and a first payload, wherein the first token is the first tokenstate, and wherein the first payload is the encrypted first message; andsending the first packet to the second node based on the second outboundrouting entry.

In a fifth aspect, the disclosure provides that the token comprises adeterministic random number, wherein the token has a plurality of tokenstates, and wherein each token state corresponds to a disparate tokenvalue.

In a sixth aspect, the disclosure provides that the token state changeswith each communication, wherein the token state ratchets with eachcommunication according to a ratcheting algorithm.

In a seventh aspect, the disclosure provides that the method furtherincludes establishing a secure channel with the second node using thetoken.

In an eighth aspect, the disclosure provides that the secure channel ismaintained based at least in part on the token state of the first nodebeing synchronized with the a token state of the second node.

In a ninth aspect, the disclosure provides that the method furtherincludes generating a new token for each communication via the securechannel.

In a tenth aspect, the disclosure provides that the communication linkis one of a hardware link or a wireless link.

In an eleventh aspect, the disclosure provides a method forcommunication by a first node. The method includes maintaining aninbound routing table; establishing a communication link with a secondnode via a first port; receiving a discovery packet from the second nodevia the first port, wherein the discovery packet comprises a tokenvalue, and wherein the token value comprises a platform token value;generating a token for communication with the second node, wherein thetoken has a first token value; identifying a first portion of the firsttoken value, wherein the first portion of the first token valuecorresponds to a first token state of the token; and adding a firstinbound routing entry to the inbound routing table, wherein the firstinbound routing entry maps the first token state to the second node.

In a twelfth aspect, the disclosure provides that the method furtherincludes sending a key exchange request from the second node;negotiating an encryption key with the second node; negotiating asession nonce with the second node; and negotiating a position offsetwith the second node, wherein the token is generated based on thesession nonce and the position offset, and wherein the token iscryptographically secured using the encryption key.

In a thirteenth aspect, the disclosure provides that the method furtherincludes maintaining an outbound routing table; adding a first outboundrouting entry to the outbound routing table, wherein the first outboundrouting entry maps the second node to the first token state; and addinga second outbound routing entry to the outbound routing table, whereinthe second outbound routing entry maps the first token state to thefirst port.

In a fourteenth aspect, the disclosure provides that the method furtherincludes obtaining a first message for the second node; identifying thefirst token state based on the first outbound routing entry; determininga first token value based on the first token state; identifying a firstportion of the first token value; identifying a second portion of thefirst token value; encrypting the first message using the second portionof the first token value; generating a first packet comprising a firsttoken and a first payload, wherein the first token is the first tokenstate, and wherein the first payload is the encrypted first message; andsending the first packet to the second node based on the second outboundrouting entry.

In a fifteenth aspect, the disclosure provides that the token comprisesa deterministic random number, wherein the token has a plurality oftoken states, and wherein each token state corresponds to a disparatetoken value.

In a sixteenth aspect, the disclosure provides that the token statechanges with each communication, wherein the token state ratchets witheach communication according to a ratcheting algorithm.

In a seventeenth aspect, the disclosure provides that the method furtherincludes establishing a secure channel with the second node using thetoken.

In an eighteenth aspect, the disclosure provides that the secure channelis maintained based at least in part on the token state of the firstnode being synchronized with the a token state of the second node.

In a nineteenth aspect, the disclosure provides that the method furtherincludes generating a new token for each communication via the securechannel.

In a twentieth aspect, the disclosure provides that the communicationlink is one of a hardware link or a wireless link.

Further aspects and embodiments are provided in the foregoing drawings,detailed description and claims.

BRIEF DESCRIPTION OF THE DRAWINGS

The following drawings are provided to illustrate certain embodimentsdescribed herein. The drawings are merely illustrative and are notintended to limit the scope of claimed inventions and are not intendedto show every potential feature or embodiment of the claimed inventions.The drawings are not necessarily drawn to scale; in some instances,certain elements of the drawing may be enlarged with respect to otherelements of the drawing for purposes of illustration.

FIG. 1 is a block diagram illustrating an exemplary network in which thepresent systems and methods may be implemented.

FIG. 2 is a table illustrating an exemplary outbound routing table fornode 1.

FIG. 3 is a table illustrating an exemplary inbound routing table fornode 2.

FIG. 4 is a table illustrating an exemplary outbound routing table fornode 2.

FIG. 5 is a block diagram illustrating one example of a packet.

FIG. 6 is a block diagram illustrating another example of a packet.

FIG. 7 is a block diagram illustrating a pair of nodes prior todiscovery.

FIG. 8 is a message flow diagram of a discovery process between twonodes.

FIG. 9 is a table illustrating the respective inbound and outboundrouting tables for node A and node B.

FIG. 10 is a block diagram illustrating a pair of connected nodes alongwith the addition of two additional nodes prior to discovery.

FIG. 11 is a block diagram illustrating a network of connected nodeswith newly connected nodes node C and node D being connected to node B.

FIG. 12 is a message flow diagram of a discovery process between node Band newly added node C and node D.

FIG. 13 is a table illustrating the inbound and outbound routing tablesfor node B following the discovery process with node C and node D.

FIG. 14 is a block diagram illustrating a network of connected nodes inwhich static routes may be used to connect non-nearest neighbor nodes.

FIG. 15 is a message flow diagram illustrating how a static route may beused to connect two non-nearest neighbor nodes through an interveningnode.

FIG. 16 is a table illustrating the inbound and outbound routing tablesfor node B following the establishment of a static route between node Aand node D.

FIG. 17 is a message flow diagram that illustrates an exemplary processof how a token is used to provide token secured routing between twonodes

FIG. 18 is a block diagram of a packet that illustrates how securedrouting may be implemented over a static route between node A and nodeD.

FIG. 19 is a block diagram of a packet that illustrates how securedrouting may be implemented over a static route between node D and nodeA.

FIG. 20 is a block diagram illustrating an exemplary network of nodesthat utilize the systems and methods described herein.

FIG. 21 is a message flow diagram illustrating how the described systemsand methods may be used in practice.

FIG. 22 is a flow diagram illustrating one example of a method for tokensecured routing.

FIG. 23 is a flow diagram illustrating one example of a method fordiscovering and connecting to nodes.

FIG. 24 is a block diagram of a computing device for implementing thedescribed systems and methods.

DETAILED DESCRIPTION

The following description recites various aspects and embodiments of theinventions disclosed herein. No particular embodiment is intended todefine the scope of the invention. Rather, the embodiments providenon-limiting examples of various compositions, and methods that areincluded within the scope of the claimed inventions. The description isto be read from the perspective of one of ordinary skill in the art.Therefore, information that is well known to the ordinarily skilledartisan is not necessarily included.

Definitions

The following terms and phrases have the meanings indicated below,unless otherwise provided herein. This disclosure may employ other termsand phrases not expressly defined herein. Such other terms and phrasesshall have the meanings that they would possess within the context ofthis disclosure to those of ordinary skill in the art. In someinstances, a term or phrase may be defined in the singular or plural. Insuch instances, it is understood that any term in the singular mayinclude its plural counterpart and vice versa, unless expresslyindicated to the contrary.

As used herein, the singular forms “a,” “an,” and “the” include pluralreferents unless the context clearly dictates otherwise. For example,reference to “a substituent” encompasses a single substituent as well astwo or more substituents, and the like.

As used herein, “for example,” “for instance,” “such as,” or “including”are meant to introduce examples that further clarify more generalsubject matter. Unless otherwise expressly indicated, such examples areprovided only as an aid for understanding embodiments illustrated in thepresent disclosure and are not meant to be limiting in any fashion. Nordo these phrases indicate any kind of preference for the disclosedembodiment.

As used herein, “node” is meant to refer to a hardware device or ahardware enabled software application that may send and/or receive datavia point to point communication.

There are many situations where it may be beneficial for leaf nodes totransport data in a network of distributed hardware and software device.For example, data may be generated and/or consumed by leaf nodesresulting in a need to transport data within the network of leaf nodes.For instance, a sensor network may include a variety of sensor nodesthat generate and communicate data along with communication nodes,interface nodes, and or applications that consume or process the data.

It is appreciated that a network of nodes, particularly a network ofnodes that is reconfigurable on the fly, where nodes discover connectedneighbor nodes, and in which nodes may communicate over diverse subnets,presents a number of communication challenges. The present disclosureconsiders how to transport data from point to point in a network that isreconfigurable on the fly, with nodes that discover connected neighbornodes, and with nodes that may communicate over diverse network subnets.

Routing and security are two key aspects to communications systems.Often routing and security are handled separately (with security beingan optional additional layer to the routing function, for example). Thedescribed systems and methods integrate routing and security together tosecure both the routing information and the payload information. Thisapproach is described herein as “token secured routing.”

Token secured routing is a protocol that integrates network routing andsecurity into a unified paradigm. Token secured routing providesfacilities for constructing and deconstructing network connections,facilities for identity verification, and facilities for informationmanagement. All of these facilities as well as other capabilities arecreated with security mechanisms integral to every step governingnetwork traffic. Despite these capabilities, the network remainsflexible and easy to use. For example, a user with proper credentialswill not notice any change in performance but will observe greatercontrol over their own data and privacy. While a user without propercredentials will be unable to traverse the network.

As discussed herein, token secured routing uses tokens, which defineboth the routing and the security model for a data packet. Tokens may besimple tokens or secured tokens. A simple token is a static fixed randomnumber. In one embodiment, a secured token is a cryptographically securerandom number. In another embodiment, a secured token is a deterministicratcheting cryptographically secure random number. It is appreciatedthat the composition of the token may vary without departing from thescope of the described systems and methods.

In token secured routing, each point to point communication between twoadjacent nodes is governed by a token protocol that is specific to onlythose two adjacent nodes. As a result, a new token (e.g., a tokenspecific to the next two nodes) must be generated at each node for thenext hop in the network (with the exception of non-secured messages,and/or static routes, for example). Because routing and security areboth based on the token being used, both routing and security areenforced at each hop (e.g., step/node) in a communication route. Thisprovides numerous features on both the routing side and the securityside.

For example, on the routing side, these features include enablingflexible topologies, supporting multi-path, enabling a self-discoverablenetwork, enabling an ad hoc network, enabling a self-healing network,enabling a supernet (built on top of the internet, for example),providing a flexible implementation that can be adapted to run at thelink layer, the transport layer, or the application layer, usingmultiple tokens to create layered routes and permission structures,providing traceability, providing auditable route tracing, andpreventing circular routing without a time to live (TTL) field.

For example, on the security side, these features include providingrouting transport control, providing identity of origin authentication,providing identity of destination authentication, facilitatingreputation based trust augmentation, providing node-to-node guaranteedencryption, providing per-packet authorization, providingdata/connection owner identification, providing non-repudiation ofdelivery, providing non-repudiation of transmission, providing inherentblocking of unauthorized access, and providing per socket accesscontrol.

Referring now to the Figures, FIG. 1 is a block diagram illustrating anexemplary network 100 in which the present systems and methods may beimplemented. The network 100 includes five nodes 105 (e.g., node1—105-a, node 2—105-b, node 3—105-c, node 4—105-c, and Wi-Fi node105-e). Node 1—105-a is connected (e.g., via a wired or wireless link)to node 2—105-b, node 3—105-c, and Wi-Fi node 105-e. Node 2—105-b isadditionally connected to node 4—105-d. Wi-Fi node 105-e is additionallyconnected to the cloud 115 (e.g., a server in the cloud 115) via theinternet 120.

Node 1—105-a is enlarged to illustrate an example of the internalstructure/functions of a node 105. Node 1—105-a includes fiveinput/output (e.g., port) managers 125 (manager 0—125-a, manager1—125-b, manager 2—125-c, manager 3—125-d, and manager 125-e that isassociated with the application 135), application 135, packet router andfirewall 140, and interconnections 145 that interconnect each of thesecomponents together. Additionally, node 1—105-a includes a processor andmemory 130, which executes instructions that are stored in the memoryand enable the node (e.g., the packet router and firewall 140, theapplication 135, and/or the managers 125) to perform various functions(e.g., message processing). The packet router and firewall 140 managesinternal communication within the node 105 by monitoring and routingpackets via interconnections 145. Although application 135 is includedwithin node 1—105-a, it is appreciated that it includes manager 125-eand may act as another node (e.g., a software node instead of a hardwarenode) with regard to data communication using the described systems andmethods.

As shown, node 1—105-a is connected to Wi-Fi node 105-e via a channelsecured via a first token “abca” 110-a (e.g., public token), isconnected to the application 135 (via manager 125-e) via a channelsecured via a second token “abcb” 110-b, is connected to node 2—105-bvia a channel secured via a third token “abcc” 110-c, and is connectedto node 4—105-d via a channel secured via a fourth token “abcd” 110-d.

The creation of a token secured channel results in the addition of oneor more entries in an inbound routing table and/or an outbound routingtable. In some embodiments, these inbound routing tables and/or outboundrouting tables are managed by a packet router and firewall (e.g., packetrouter and firewall 140) within the node. Selected exemplary routingtables for network 100 are illustrated in FIGS. 2-4.

It is appreciated that Port3 (e.g., manager 3 125-d) has no routes,hence is unreachable. Additionally, traffic to Node 4 105-d is routedthrough Port1 (e.g., manager 1 125-b), but with a unique channel (i.e.,“abcd”).

FIG. 2 is a table 200 illustrating an exemplary outbound routing table205 for node 1—105-a in network 100. The node 1 outbound routing table205 includes a public token field 210, a protocol field 215, a sourcefield 220, a destination field 225, a hierarchy field 230, a key field235, an index field 240, and a payload type field 245. The node 1outbound routing table 205 includes 5 entries corresponding to thepublic token 210 values of “0001” 110-g, “abca” 110-a, “abcb” 110-b,“abcc” 110-c, and “abcd” 110-d.

The public token 210 is a portion of a token value or other identifierfor a token value. The public token is either a known static address(e.g., “0001”) or a cryptographically secure one-time key (e.g.,“abca”). The short token lengths used herein are for example only. Thepublic token is typically included in the token portion of a packet thatis transmitted across a secured channel and thus is public visible. Thepublic token is not the actual token value, since transmitting theactual token value (e.g., the actual cryptographically secure key) woulddefeat the purpose of using a cryptographically secure one-time key(e.g., cryptographically secure random number).

The token protocol 215 specifies a routing and security model for thedata packet. It is appreciated that different token protocols may beused to support additional functionality.

The source 220 and/or destination 225 define the actual routing rules.It is appreciated that the universe of available sources and/ordestinations is limited to the sources and destinations that are knownto the node. For example, ports available at the node, applicationsavailable at the node, registered public tokens that are currently knownby the node (e.g., in the inbound routing table and/or the outboundrouting table). General categorizations such as “any” or “internal” arealso possible, as shown.

Hierarchy 230 identifies the order in which the entries should beevaluated (with lower numbered hierarchal rules being evaluated beforehigher numbered hierarchal rules, for example). Key 235 identifies thekey (e.g., token value) being used for that secured connection. Theindex 240 identifies the token state (e.g., ratcheting state) of thetoken value. The payload 245 indicates the type of payload (e.g.,network protocol or normal payload).

The public token “0001” 110-g entry is not cryptographically secured(e.g., the key 235 and index 245 fields are not applicable (n/a)) andthe payload is a network protocol payload. The “abca” first token 110-aroutes to (e.g., has a destination of) Port0 (i.e., via manager 0—125-a)which means that it will route to the Wi-Fi node 105-e via a securedchannel using the appropriate key (K1) and index (X1). The “abcb” secondtoken 110-b routes to (e.g., has a destination of) App1 (i.e., viamanager —125-e) which means that it will route to the application 135via a secured channel using the appropriate key (K2) and index (X2). The“abcc” third token 110-c routes to (e.g., has a destination of) Port1(i.e., via manager 1—125-b) which means that it will route to node2—105-b via a secured channel using the appropriate key (K3) and index(X3). The “abcd” fourth token 110-d routes to (e.g., has a destinationof) Port1 (i.e., via manager 1—125-b) which means that it will route tonode 2—105-b via a secured channel using the appropriate key (K4) andindex (X4) (which are different than K3 and X3, for example).

FIG. 3 is a table 300 illustrating an exemplary inbound routing table305 for node 2—105-b in network 100. The node 2 inbound routing table305 includes the same field discussed in the node 1 outbound routingtable 205. The node 2 inbound routing table 305 includes 3 entriescorresponding to the public token 210 values of “0001” 110-g, “abcc”110-c, and “abcd” 110-d.

The public token “0001” 110-g entry has a source of any and routes to“internal”. The public token “0001” 110-g is not cryptographicallysecured (e.g., the key 235 and index 245 fields are not applicable(n/a)) and the payload is a network protocol payload. The “abcc” thirdtoken 110-c, which will be secured using key (K5) and index (X5), has asource of Port0 and routes to (e.g., has a destination of) “internal”,which means that it will route to the internal processor and/or memory(e.g., processor and memory 130) of node 2—105-b via the internal packetrouting (via a packet router and firewall, for example). The “abcd”fourth token 110-d, which will be secured using key (K6) and index (X6),has a source of Port0 and routes to (e.g., has a destination of) “abce”,which is the fifth token and is the secure channel between node 2—105-band node 4—105-d.

FIG. 4 is a table 400 illustrating an exemplary outbound routing table405 for node 2—105-b in network 100. The node 2 outbound routing table405 includes the same field discussed in the node 1 outbound routingtable 205 and the node 2 inbound routing table 305. The node 2 outboundrouting table 405 includes 3 entries corresponding to the public token210 values of “0001” 110-g, “abce” 110-e, and “abcf” 110-f.

The public token “0001” 110-g entry is not cryptographically secured(e.g., the key 235 and index 245 fields are not applicable (n/a)) andthe payload is a network protocol payload. The “abce” fifth token 110-ehas a source of Port0 and routes to (e.g., has a destination of) Port1,which means that it will route to node 4—105-d via a secured channelusing the appropriate key (K7) and index (X7). The “abcf” sixth token110-f has a source of “any” and routes to (e.g., has a destination of)Port0, which means that it will route to node 1—105-a via a securedchannel using the appropriate key (K8) and index (X8).

Thus, in network 100, in one example, node 1—105-a may wish to send amessage to node 4—105-d using the fourth token “abcd” 110-d. Node1—105-a (e.g., the packet router and firewall 140) references the node 1outbound routing table 205 and identifies the entry associated with thefourth token “abcd” 110-d for the outbound routing instructions.According to the entry for “abcd” 110-d in the node 1 outbound routingtable 205, the internal source routes to Port1, secured by key (K4) andindex (X4). Node 1—110-b (e.g., packet router and firewall 140) mayencrypt the message using key (K4) and index (X4) and may generate apacket that includes the fourth token “abcd” 110-d and the encryptedmessage. Packet router and firewall 140 routes the generated packet tomanager 1—125 (e.g., Port1) based on the entry for “abcd” 110-dregistered in the node 1 outbound routing table 205. Manager 1—125 maysend the generated packet on Port1.

Continuing with this example, node 2—105-b receives the generated packet(referred to now as the received packet) at Port0 and passes thereceived packet to a packet router and firewall (e.g., packet router andfirewall 140). Node 2—105-b (e.g., the packet router and firewall)checks the public token of the received packet and identifies that thepublic token is “abcd” 110-d. Node 2—105-b checks the node 2 inboundrouting table 305 and identifies an inbound routing rule correspondingto the “abcd” 110-d token and processes the received packet accordingly.In this case, the packet is depacketized into token and encryptedmessage portions. The encrypted message is decrypted using theappropriate key (K5) and index (X5), which correspond to the key (K4)and index (X4) that was used to encrypt the message. Node 2—105-b routesmessage to the “abce” token.

Accordingly, node 2—105-b references the node 2 outbound routing table405 and identifies an outbound routing rule corresponding to the “abce”110-e token and processes the decrypted message accordingly. In thiscase, the decrypted message is encrypted using the appropriate key (K7)and index (X7) for the “abce” secured channel. Node 2—105-b generates apacket that includes the public token “abce” 110-e and the newlyencrypted message. Packet router and firewall routes the generatedpacket to Port1 based on the entry for “abce” 110-e registered in thenode 2 outbound routing table 405. The generated packet is sent onPort1. Using this described process node 4—105-d similarly receives andprocesses the packet generated by node 2—105-b.

FIG. 5 is a block diagram illustrating one example of a packet 500. Thepacket 500 includes a token portion 505 and a payload portion 510.

In some embodiments, the token portion 505 includes a token protocol515, a token version 520, a length 525, and a value 530 (e.g., publictoken value). The token protocol 515 may specify a routing and securitymodel for the data packet. The token protocol 515 may indicate a secureor insecure procedure, a specific routing destination, a genericnearest-neighbor destination, a network traversal search, or a broadcastmode. The token version 520 may provide compatibility information on theselected token protocol 515. The token length 525 may specify the numberof bytes in the token value 530. The token value 530 (e.g., public token110) provides routing and security information per the token protocol515.

In some embodiments, the payload portion 510 includes aDeviceType.DataType 535, a data length 540, and data 545. TheDeviceType.DataType 535 may specify the type, class, and/or formattingof the data 545. The data length 540 may specify the number bytes in thedata 545. The data 545 may be the actual data payload.

FIG. 6 is a block diagram illustrating another example of a packet 600.The packet 600 includes a token portion 505-a and a payload portion510-a. The token portion 505-a (e.g., T) may be an example of the tokenportion 505 illustrated in FIG. 5. Alternatively, the token portion505-a may only include the token value 530. The payload portion 510-a(e.g., M) may be an example of the payload portion 510 illustrated inFIG. 5. Alternatively, the payload portion 510-a may only include thedata 545.

In some embodiments, a stream cipher is used as pseudo random numbergenerator to create a deterministic sequence of tokens. Examples of astream cipher include the ChaCha20 and Salsa20 stream ciphers. Theprotocol can optionally use the same bit stream to provide dataconfidentiality. Fundamentally, token secured routing prefixes a messageM, possibly encrypted by function E, with a token T that determines allnetwork actions performed on the packet.

The token type of T determines the applied routing & securityalgorithms. Examples of tokens include simple tokens and secure tokens.It is appreciated that both simple tokens and secure tokens have theirown use cases. In some embodiments, a simple token is a static fixedrandom number. In some embodiments, a secure token is a deterministicratcheting cryptographically secure random number.

In one example, the token value 530-a may be a ChaCha20 state block thatincludes four (4) constant fields 605, eight (8) key fields 610 (e.g.,key 235), two (2) position fields 615, and two (2) nonce fields 620.

FIGS. 7-9 illustrate a discover process that enables two initiallyunconnected nodes (e.g., node A 105-A and node B 105-B) to establish atoken secured route (e.g., a token secured channel) between them.

FIG. 7 is a block diagram 700 illustrating a pair of nodes prior todiscovery. The pair of nodes includes node A 105-A and node B 105-B.Node A 105-A and node B 105-B are initially unconnected as illustratedby the dotted line. A node is not initially connected to any other node.By default, a node is unable to communicate with any node that is notits nearest neighbor. To communicate, the node goes through a‘Discovery’ process. The discovery process is fundamentally betweenexactly two individual nodes (e.g., node A 105-A and node B 105-B.

FIG. 8 is a message flow diagram 800 of a discovery process between twonodes. Node A 105-A is initially unconnected to node B 105-B. A hardwarelink (e.g., wired link or wireless link) is established 805 between thetwo nodes. The link establishment 805 enables communication between thenodes (e.g., node A 105-A, node B 105-B). Node A 105-A sends a discovery“Hello” packet 810 to node B 105-B on port 1. The discovery “Hello”packet 810 may use a special platform token value (e.g., “0001”), suchas a simple token (of length <2{circumflex over ( )}64, for example). Itis appreciated that there may be several different types of platformlevel packets. Including, for example, Hello\Knock packets, connectionrequest packets, UUID disclosure packets, disclosure request packets,application advertisement packets, service advertisement packets,timestamp packets, heartbeat packets, and network error packets.

Node B 105-B, in response, sends an initiate key exchange request 815 toNode A 105-A. In response to the initiate key exchange request 815, nodeA 105-A and node B 105-B engage in a key exchange 820. For example, thekey exchange 820 may be a Diffie-Hellman key exchange. In the keyexchange 820, both node A 105-A and node B 105-B may obtain k_(AB) (a256-bit key (e.g., key 610), for example). In addition, in the keyexchange 820, both node A 105-A and node B 105-B may obtain a positionoffset (a 32-bit position offset (e.g., position 615), for example). Inaddition, in the key exchange 820, both node A 105-A and node B 105-Bmay obtain a session nonce (a 64-bit session nonce (e.g., nonce 620),for example). The result of the key exchange 820 is a combined tokenstate. As used herein, T_(AB) represents the combined token state. NodeA 105-A sets the token state 825-a to T_(AB). Similarly, node B 105-Bsets the token state 825-b to T_(AB). With the token state set, bothnode A 105-A and node B 105-B add entries to the appropriate routingtables 830-a, 830-b. Exemplary routing tables are illustrated in FIG. 9.With the token state (e.g., T_(AB)) established and the appropriateentries added to the respective routing tables a secure connection(e.g., token secured connection) is established 835 between node A 105-Aand node B 105-B.

FIG. 9 is a table 900 illustrating the respective inbound and outboundrouting tables for node A 105-A and node B 105-B. Table 900 includesthree columns, with the first column 210-a being the public token (e.g.,public token 210, combined token state), the second column 225-a beingthe destination (e.g., destination 225), and the third column 930 beingthe permissions associated with the routing.

As a result of the discovery process, the following entries 925 areadded to the routing tables 830. In the node A inbound routing table905, a first entry routes the token state T_(AB) to B* (e.g., auniversally unique identifier (UUID) for node B 105-B). As used hereinthe asterisk (*) indicates a default or platform-level channelindicator. In the node A outbound routing table 910, a first entryroutes B* to the token state T_(AB), and a second entry routes T_(AB) toPort1. In the node B inbound routing table 915, a first entry routes thetoken state T_(AB) to A* (e.g., a UUID for node A 105-A). In the node Boutbound routing table 920, a first entry routes A* to the token stateT_(AB), and a second entry routes T_(AB) to Port1.

FIG. 10 is a block diagram 1000 illustrating a pair of connected nodesalong with the addition of two additional nodes prior to discovery. NodeA 105-A and node B 105-B are connected with a secure connection 835 asdescribed in FIGS. 8 and 9. Node C 105-C and node D 105-D are not yetconnected to node B 105-B.

FIG. 11 is a block diagram 1100 illustrating a network of connectednodes with newly connected nodes node C 105-C and node D 105-D (comparedto diagram 1000 in FIG. 10, for example) being connected to node B105-B. When node B 105-B is connected to node C 105-C and node D 105-D,the same discovery procedure establishes T_(BC) and T_(BD). As a resultof the addition of these new connections, the routing table for node B105-B expands to include the new entries illustrated in FIG. 13.

FIG. 12 is a message flow diagram 1200 of a discovery process betweennode B 105-B and newly added node C 105-C and node D 105-D. As discussedwith respect to FIG. 8, node A 105-A has a secure connection established835 with node B 105-B.

Node B 105-B is initially unconnected to node C 105-C. A hardware link(e.g., wired link or wireless link) is established 805-a between the twonodes. The link establishment 805-a enables communication between thenodes (e.g., node B 105-B, node C 105-C). Node B 105-B sends a discovery“Hello” packet 810-a to node C 105-C on port 1. Node C 105-C, inresponse, sends an initiate key exchange request 815-a to Node B 105-B.In response to the initiate key exchange request 815-a, node B 105-B andnode C 105-C engage in a key exchange 820-a (e.g., key exchange 820).The result of the key exchange 820 is a combined token state (e.g.,T_(BC)). With the token state (e.g., T_(BC)) established and theappropriate entries added to the respective routing tables a secureconnection (e.g., token secured connection) is established 835-a betweennode B 105-B and node C 105-C.

Node B 105-B is initially unconnected to node D 105-D. A hardware link(e.g., wired link or wireless link) is established 805-b between the twonodes. The link establishment 805-b enables communication between thenodes (e.g., node B 105-B, node D 105-D). Node D 105-D sends a discovery“Hello” packet 810-b to node B 105-B on port 1. Node B 105-B, inresponse, sends an initiate key exchange request 815-B to Node D 105-D.In response to the initiate key exchange request 815-b, node B 105-B andnode D 105-D engage in a key exchange 820-b (e.g., key exchange 820).The result of the key exchange 820-b is a combined token state (e.g.,T_(BD)). With the token state (e.g., T_(BD)) established and theappropriate entries added to the respective routing tables a secureconnection (e.g., token secured connection) is established 835-b betweennode B 105-B and node D 105-D.

FIG. 13 is a table 1300 illustrating the inbound and outbound routingtables for node B 105-B following the discovery process with node C105-C and node D 105-D. Table 1300 is an expanded version of the Binbound routing table 915 and B outbound routing table 920 illustratedin FIG. 9.

As a result of the discovery process, the following entries 925 areadded to the routing tables 830. In the node B inbound routing table915-a, the first entry (as discussed with respect to table 900, forexample) routes the token state T_(AB) to A* (e.g., a UUID for node A105-A), a second entry routes the token state T_(BC) to C* (e.g., a UUIDfor node C 105-C), and a third entry routes the token state T_(BD) to D*(e.g., a UUID for node D 105-D). In the node B outbound routing table920-a, the first entry (as discussed with respect to table 900, forexample) routes A* to the token state T_(AB), the second entry (asdiscussed with respect to table 900, for example) routes T_(AB) toPort1, a third entry routes C* to the token state T_(BC), a fourth entryroutes T_(BC) to Port2, a fifth entry routes D* to the token stateT_(BD), and a sixth entry routes T_(BD) to Port3.

Referring back to FIG. 11, if node A 105-A wants to send a “hello”packet to a node that is not a nearest neighbor (e.g., node C 105-C,node D 105-D), it will use the pre-established channel with node B105-B.

FIG. 14 is a block diagram 1400 illustrating a network of connectednodes in which static routes may be used to connect non-nearest neighbornodes (e.g., node A 105-A to node D 105-D via intervening node B 105-B).If, for example, node A 105-A wants to establish a static route to nodeD 105-D, a static token T_(S) is registered with each node (e.g., node B105-B) in the route. A static token is a token protocol with a fixedvalue that does not change for the life of the route.

FIG. 15 is a message flow diagram 1500 illustrating how a static routemay be used to connect two non-nearest neighbor nodes through anintervening node. It is assumed that node A 105-A and node B 105-B areconnected with a secure channel and that node B 105-B and node D 105-Dare connected with a secure channel as discussed with respect to FIGS.11-13.

Node A 105-A, which wants to establish a static route to node D 105-D(i.e., a non-nearest node neighbor) generates a static token (T_(S))1505. With the static token generated, node A 105-A sends a requeststatic route to D 1510 to node B 105-B via the secure channelestablished 835 between node A 105-A and node B 105-B. In other words,the request static route to D 1510 is sent using the T_(AB) token state.The request static route to D 1510 includes the generated T_(S). Node B105-B uses the node B inbound routing table to route the request staticroute to D 1510 and processes the request. As part of the processing,node B 105-B registers an inbound routing rule that routes T_(S) toT_(S) 1515 (with a permission of “forwarding”, for example). Since nodeB 105-B is not node D 105-D (i.e., the node being requested) node B105-B may check to see if node D 105-D is referenced in the node Boutbound routing table or may simply forward the request on allpotential ports. Node B 105-B registers an outbound routing rule thatroutes T_(S) to each potential port that Node B 105-B determines shouldbe tried. In this case, node B 105-B registers an outbound routing rulethat routes T_(S) to Port3 1520.

Node B 105-B forwards the request static route to D 1525 to node B 105-Bvia the secure channel established 835 between node B 105-B and node D105-D. In other words, the forwarded request static route to D 1525 issent using the T_(BD) token state. The forwarded request static route toD 1525 includes the generated T_(S). Node D 105-D uses the node Dinbound routing table to route the forwarded request static route to D1510 and processes the request. Since node D 105-D is D (e.g., UUID fornode D 105-D), node D 105-D accepts the static route request to D andregisters an inbound routing rule that routes T_(S) to D* 1530. Assumingthat T_(SA) represents a static route back from node D 105-D to node A105-A, node D 105-D may also register an outbound routing rule thatroutes T_(S) to T_(SA) 1535.

With D accepting the static route request to D, a one-way static routeis established between node A 105-A and node D 105-D. Accordingly, nodeA 105-A may send a message 1545 to node B 105-B via T_(S). Since node B105-B has the T_(S) to T_(S) inbound routing rule and the T_(S) to Port3outbound routing rule in place, node B 105-B forwards the message 1550to node D 105-D via T_(S) using these routing rules. Accordingly, astatic route is created between node A 105-A and node D 105-D. It isappreciated that node D 105-D cannot send messages to node A 105-A usingT_(S) unless appropriate routing rules are similarly registered for thereverse path. It is also appreciated that static routes alone do notprovide secure routing. Secure routing with static routes is stillavailable, however, using the techniques discussed in FIGS. 18 and 19.

FIG. 16 is a table 1600 illustrating the inbound and outbound routingtables for node B 105-B following the establishment of a static routebetween node A 105-A and node D 105-D. Table 1600 is an expanded versionof the B inbound routing table 915-a and B outbound routing table 920-aillustrated in FIG. 13 except that the entries related to node C 105-Care removed because node C 105-C is not included in the network topology1400 illustrated in FIG. 14.

As a result of the static route establishment process, the followingentries 925 are added to the routing tables 830. In the node B inboundrouting table 915-b, the first entry (as discussed with respect to table900, for example) routes the token state T_(AB) to A* (e.g., a UUID fornode A 105-A), a second entry routes the token state T_(S) to T_(S)(which includes the forwarding permission 930, for example), and a thirdentry routes the token state T_(BD) to D* (e.g., a UUID for node D105-D). In the node B outbound routing table 920-a, the first entry (asdiscussed with respect to table 900, for example) routes A* to the tokenstate T_(AB), the second entry (as discussed with respect to table 900,for example) routes T_(AB) to Port1, a third entry routes D* to thetoken state T_(BD), a fourth entry routes T_(BD) to Port3, and a fifthentry routes T_(S) to Port3.

FIG. 17 is a message flow diagram 1700 that illustrates an exemplaryprocess of how a token is used to provide token secured routing betweentwo nodes (e.g., node A 105-A and node B 105-B). It is appreciated thata secured token may never be used to in same secured channel twice. Bitsused to secure any use of the stream cipher on a channel results in thecipher index advancing.

A secure channel is established 835 between node A 105-A and node B105-B. As a result of the secure connection being established 835, bothnode A 105-A and node B 105-B are synchronized in using the first tokenstate 1705-a, 1705-b.

In one example, a program P in node A 105-A sends a message M to node B105-B over channel T_(AB), with a token/message length of 4/8 bytes. Inthis example, the current token state produces the following random bitstring “ABCDEFGHIJKLMNOPQRSTUVWXYZ . . . ” (e.g., token value).Accordingly, both node A 105-A and node B 105-B have “ABCD” set as thefirst token state 1705-a, 1705-b (e.g., T_(AB)=“ABCD”). So, node B 105-Bis expecting that the first token state (e.g., T_(AB)) is “ABCD”. Node A105-A generates a token (e.g., T for T+E(M)) using a first portion(i.e., “ABCD”) of the token value 1710. Node A 105-A encrypts themessage M using a second portion (i.e., “EFGHIJKL”) of the token value1715. With the token T and message M encrypted, node A may generate apacket of the form T+E(M). Node A 105-A may send the generated packet“T+E(M)” 1720 to node B 105-B using the appropriate outbound routingentries as described herein.

In connection with sending the generated packet, node A 105-A mayregister a response route with a third portion (i.e., “MNOP”)(corresponding to a second token state of T_(AB), for example) in theinbound routing table 1725 (e.g., “MNOP” routes to P). In addition, nodeA 105-A updates the token state (e.g., T_(AB)) to the fourth portion(i.e., “QRSTUVWXYZ . . . ”) 1730 (corresponding to a third token stateof T_(AB), for example).

Node B 105-B receives the packet “T+E(M)” 1720 and identifies the token“ABCD”, (i.e., the first token state associated with T_(AB)), whichexists in the node B inbound routing table 1740. Thus, the token statefor node B's T_(AB) is exactly that of node A prior to the sending tothe packet. Node B 105-B identifies the second portion of the tokenvalue (i.e., “EFGHIJKL”) and decrypts the message using the secondportion of the token value 1745. Node B 105-B then processes the messageM 1750. For example, node B 105-B evaluates the message M and takes theappropriate responsive action based on the content of the message M.

Optionally, if a response is required to the message M, node B 105-Bregisters the third portion (i.e., “MNOP”) of the token value(corresponding to the second token state of T_(AB), for example) to theappropriate port in the node B outbound routing table 1755. In addition,node B 105-B updates the token state (e.g., T_(AB)) to the fourthportion (i.e., “QRSTUVWXYZ . . . ”) 1760 (corresponding to a third tokenstate of T_(AB), for example). Thus, at this point, the token states ofboth node A 105-A and node B 105-B are again the same. It is appreciatedthat a response route is registered to allow node B 105-B to respondusing a token state (e.g., the second token state of T_(AB), in thisexample) that is “tied” to the previously sent message, which enableseasy route traceability. In some cases, these return response routes maybe removed from the inbound routing table of node A 105-A after aparticular time frame. With the token state again being synchronizedbetween node A 105-A and node B 105-B, each further communicationbetween node A 105-A and node B 105-B may follow this same process(e.g., message flow 1700).

It is appreciated that external nodes connected to the ports of atransmitting node may communicate with the node or may ignore thecommunication requests. Each node maintains an access table thatprovides a lookup mechanism for each authorized data route (via thepacket routing and firewall 140, for example). Each token, or a range oftokens, may be associated in the table (via the permissions field 930,for example) with one of the following actions: DROP, REJECT, FORWARD,or PROCESS.

If the action is DROP, the packet is discarded. If the action is REJECT,the packet is discarded and an error response is sent (e.g., returnedvia the registered return path to the sending node). If the action isFORWARD, the packet is routed to a destination node as defined in theaccess tables (e.g., inbound routing tables, outbound routing tables).If the action is PROCESS, the routing table or the payload of the packetis inspected for additional internal operations.

In some cases, the payload may request a data or service that is notsupported by the node. In this case, the node may elect to subsequentlyforward the payload to another destination based on internal routingcriteria or may DROP or REJECT the packet.

It is appreciated that the public token is either a known static addressor a cryptographically secure one-time key. It is understood that theshort token lengths discussed herein are exemplary only (for ease ofunderstanding, for example) and actual lengths may be set to maximizecertain token attributes (depending on use case, for example).

In some embodiments, the payload may be correlated with the tokenprotocol. For example, protocol 01 may indicate generic platform levelnetwork operations such as destination discovery protocols. The payloadprovides additional inputs to the network functions, or response data.In another example, protocol 16-31 may indicate that the payload is anipv4, ipv6, or other externally defined network protocol. In thisimplementation the payload is forwarded from on node to another in thedirection of a gateway configured to process the external protocol. Inanother example, protocol 128-254 may each specify a particularcryptographic schema for generating and managing a public token. Inanother example, protocol 255 may be reserved for purposes of futureextensibility.

FIG. 18 is a block diagram 1800 of a packet that illustrates how securedrouting may be implemented over a static route between node A 105-A andnode D 105-D. The static route T_(S) from node A 105-A to node D 105-Das considered with respect to FIGS. 14-16 may be designated as T_(SA)whereas the static route T_(S) from node D 105-D to node A 105-A asconsidered with respect to FIGS. 14-16 may be designated as T_(SD).

In the prior examples, the progress of a message M from A→B→D requiredan initialized secure token at every hop in the network. In someapplications, it may suffice to secure only the endpoints, namely A andD, with secure tokens. In this case, B (and all other intermediatenodes) may use a static route (e.g., T_(SA) and T_(SD)). In theseembodiments, once a static route has been established, the two end nodes(e.g., node A 105-A and node D 105-D) may similarly form a secureconnection between them by performing the discover process describedherein while messaging across the static route. In this case, a securedchannel with a unique token state T_(AD) 1805 is established betweennode A 105-A and node D 105-D.

As illustrated, the static route may occupy the token portion 505-b ofthe packet while the token state T_(AD) between the endpoints node A105-A and node D 105-D may be included in the payload portion 510-b ofthe packet. Accordingly, the features of token secured routing may beapplied in connection with the use of static routes.

FIG. 19 is a block diagram 1900 of a packet that illustrates how securedrouting may be implemented over a static route between node D 105-D andnode A 105-A. It is noted that the same token state T_(AD) 1805 for thesecure connection established between node A 105-A and node D 105-D isincluded in both the T_(SA) packet and the T_(SD) packets. Similar toFIG. 18, the static token T_(SD) is included in the token portion 505-cof the packet while the token state T_(AD) for the secure connectionbetween node A 105-A and node D 105-D is included in the payload portion510-c of the packet.

FIG. 20 is a block diagram 2000 illustrating an exemplary network ofnodes that utilize the systems and methods described herein. Node A105-A and node B 105-B are connected with a secure connection 835 asdescribed in FIGS. 8 and 9. Node B 105-B is connected to node C 105-Cand node D 105-D as described with respect to FIGS. 11 and 12. Themessage flow diagram illustrated in FIG. 21 is based on the networktopology illustrated in FIG. 20.

FIG. 21 is a message flow diagram 2100 illustrating how the describedsystems and methods may be used in practice. Node A 105-A and node B105-B are connected via an established secure connection 835-a, node B105-B and node C 105-C are connected via an established secureconnection 835-b, and node B 105-B and node D 105-D are connected via anestablished secure connection 835-c as described with respect to FIGS.11 and 12, for example.

As used in this example, T_(N) represents a static token generated bynode N, T^(K) _(NM) represents a ratcheting token of a cryptographicallysecure random number sequence generated by nodes N and M, with Krepresenting the K^(th) token (e.g., token state) in the sequence, P_(i)representing port i of the node, and G_(N) representing the UUID of nodeN.

In one example, App20 in node A 105-A (P_(A) ²⁰) seeks a persistentconnection with App20 somewhere else in the network. It is assumed thatApp20 is only running on node A 105-A and node D 105-D in this example.P_(A) ²⁰ will query the network for other running instances of P²⁰. Itis presumed that the token secured routing protocol is represented byQ(P²⁰)=Q. It is also presumed that the T^(N)→^(r)→T^(N+1) notationdenotes ratcheting the secure token forward.

Node A 105-A prepares packet T⁰ _(AB)+Q=M^(B) _(Q) and registers aninbound routing entry (T¹ _(AB), *). Node A 105-A sends packet M^(B)_(Q) 2105 and ratchets the secure token T⁰ _(AB)→^(r)→T¹ _(AB). Node B105-B receives M^(B) _(Q) 2105 and identifies token T⁰ _(AB) with rule*. The message protocol handler of node B 105-B parses Q. Node B 105-Bratchets the secure token T⁰ _(AB)→^(r)→T¹ _(AB) and registers anoutbound routing entry (T¹ _(AB), P₁). Node B 105-B does not have App20so does not respond to node A 105-A.

Node B 105-B prepares packet T⁰ _(BC)+Q=M^(C) _(Q) and registers aninbound routing entry (T¹ _(BC), T¹ _(AB)). Node B 105-B prepares packetT⁰ _(BD)+Q=M^(D) _(Q) and registers an inbound routing entry (T¹ _(BD),T¹ _(AB)). Node B 105-B sends packet M^(C) _(Q) 2110 and ratchets thesecure token T⁰ _(BC)→^(r)→T¹ _(BC). Node B 105-B sends packet M^(D)_(Q) 2115 and ratchets the secure token T⁰ _(BD)→^(r)→T¹ _(BD).

Node C 105-C receives M^(C) _(Q) 2110 and processes the packet asdescribed above. Node C 105-C ratchets the secure token T⁰ _(BC)→^(r)→T¹_(BC). Node C 105-C does not have App20, so does not respond to node A105-A. Node C 105-C does not have any child nodes, node C 105-C does notforward Q.

Node D 105-D receives M^(D) _(Q) 2115 and processes the packet asdescribed above. Node D 105-D ratchets the secure token T⁰ _(BD)→^(r)→T¹_(BD). Node D 105-D does have App20, so prepares messageDisclose(P²⁰)=D. Node D 105-D sends packet M^(B) _(D) 2120=T¹ _(BD)+D.

Node B 105-B receives M^(B) _(D) 2120 and identifies T¹ _(BD) in theinbound routing table. Based on the routing rules (T¹ _(BD), T¹ _(AB))and (T¹ _(AB), P₁) set above, node B 105-B prepares message M^(A) _(D)2125=T¹ _(AB)+D.

Node A 105-A receives M^(A) _(D) 2125 and identifies T¹ _(AB) in theinbound routing table (T¹ _(AB), *), where * is the protocol handler.The protocol handler at node A 105-A processes the Disclose(P²⁰)message. Now P_(A) ²⁰ knows where to contact P_(D) ²⁰.

As noted above, P_(A) ²⁰ seeks a persistent connection with P_(D) ²⁰. Inorder to establish a permanent connection between P_(A) ²⁰ and P_(D) ²⁰a dedicated token chain is required from node A 105-A to node B 105-B.The new tokens for the connection are designated by T. It is presumedthat the protocol is represented by Connect_(N)(P_(D) ²⁰)=C, where N isa nonce that must be signed by D for the connection to be valid.

Node A 105-A prepares T² _(AB)+C=M^(B) _(C) and sends M^(B) _(C) 2130.Node A 105-A ratchets the secure token T² _(AB)→^(r)→T³ _(AB) andregisters an inbound routing entry (T³ _(AB), *). Node A 105-Ainitializes T⁰ _(AB) and packs it into C (e.g., see FIGS. 18 and 19).Node A 105-A registers an inbound routing entry (e.g., rule) of (T⁰_(AB), P_(A) ²⁰).

Node B 105-B receives M^(B) _(C) 2130 and identifies toke T² _(AB) withexisting rule (T² _(AB), *) in the inbound routing table. The node B105-B message protocol handler parses C. If permission match from C,node B 105-B registers an outbound routing entry (T⁰ _(AB), P₁). Node B105-B initializes T⁰ _(BD) and packs it into C (e.g., see FIGS. 18 and19). Node B 105-B registers an inbound routing entry (e.g., rule) of (T⁰_(BD), T⁰ _(AB)). Node B prepares T² _(BD)+C=M^(D) _(C) and sends M^(D)_(C) 2135. Node B 105-B ratchets the secure token T² _(BD)→^(r)→T³_(BD). It is noted that having previously identified that G_(D) isassociated with port 3, node B 105-B can ignore preparing and sendingM^(C) _(C) (not shown).

Node D 105-D receives M^(D) _(C) 2135 and identifies token T² _(BD) withexisting rule (T² _(BD), *) in the inbound routing table. The node D105-D message protocol handler parses C. If permissions match from C,node D 105-D registers an outbound routing entry (T⁰ _(BD), P₁) and aninbound routing entry (T⁰ _(BD), P_(D) ²⁰). Node D 105-D connects toP_(D) ²⁰ and sends an acknowledgment of success (via the return responseroute as described herein, for example).

It is presumed that the protocol is represented by ConnectOK_(N)=K. NodeD 105-D prepares T⁰ _(BD)+K=M^(B) _(K) and sends M^(B) _(K) 2140. Node D105-D ratchets the secure token T⁰ _(BD)→^(r)→T¹ _(BD).

Node B 105-B receives M^(B) _(K) 2140 and identifies token T⁰ _(BD)→T⁰_(AB)→P₁ with existing routing rules in the inbound and outbound routingtables. Node B prepares T⁰ _(AB)+K=M^(A) _(K) and sends M^(A) _(K) 2145.Node B 105-B ratchets the secure token T⁰ _(AB)→^(r)→T¹ _(AB) and T⁰_(BD)→^(r)→T¹ _(BD).

Node A 105-A receives M^(A) _(K) 2145 and identifies token T⁰ _(AB) withexisting rule (T⁰ _(AB), P_(A) ²⁰) in the inbound routing table. P_(A)²⁰ receives the message K, meaning the connection request wassuccessful. Now node A 105-A and node D 105-D can communicate on securedchannel T_(AB) and T_(BD) respectively.

FIG. 22 is a flow diagram illustrating one example of a method 2200 fortoken secured routing. The method 2200 may be implemented by a node 105and more specifically by an application specific processor (e.g.,processor and memory 130) included within the node 105.

At 2205, an outbound routing table is maintained. At 2210, a firstmessage for the second node is obtained from an application. At 2215, afirst token stat is identified based on the first outbound routingentry. At 2220, a first token value is determined based on the firsttoken state. At 2225, a first portion of the first token value isidentified. At 2230, a second portion of the first token value isidentified. At 2235, the first message is encrypted using the secondportion. At 2240, a first packet is generated, where the first packetincludes a first token and a first payload. At 2245, the first packet issent to the second node based on the second outbound routing entry.

FIG. 23 is a flow diagram illustrating one example of a method 2300 fordiscovering and connecting to nodes. The method 2300 may be implementedby a node 105 and more specifically by an application specific processor(e.g., processor and memory 130) included within the node 105.

At 2305, an inbound routing table is maintained. At 2310, acommunication link is established with a second node via a first port.At 2315, a discovery packet is sent to a the second node via the firstport. At 2320, a token is generated for communication with the secondnode. At 2325, a first portion of the first token value is identified.At 2330, a first inbound routing entry is added to the inbound routingtable.

FIG. 24 is a block diagram of a computing device 2405 for implementingthe described systems and methods. In some embodiments, the nodes (e.g.,nodes 105) may be examples of the computing device 2405.

The computing device 2405 includes a processor 2410 (including ageneral-purpose processor and one or more application specificprocessors, for example), a wireless transceiver 2425 for communicatingvia a first RAT (e.g., 3G, 4G, LTE, 5G-NR, and/or LoRaWAN), an optionalwireless transceiver 2430 for communicating via a second RAT (e.g.,Bluetooth, Wi-Fi), a communication interface 2445 (e.g., serialinterface, peripheral component interconnect express), a memory 2415(e.g., random access memory (RAM), non-volatile RAM (NVRAM)), data store2420 (e.g., hard disk drive, solid state disk), an optional display 2435for interfacing with a user, a user input device 2440 (e.g., touchinput, mouse, keyboard, pen input), and an interconnect or bus 2450 forinterconnecting each of the components 2410-2440.

In some embodiments, the memory 2415 and/or the data store 2420 (eachbeing a non-transitory storage medium, for example) may storeinstructions that are executable by the processor 2410 (e.g., processorand memory 130) to implement the systems and methods described herein.For example, the instructions may be executable by the processor 2410 toimplement any of the methods (e.g., method 2200 and/or method 2300).

In some embodiments, each node 105 has a globally unique identifier thatmay be used by external devices to reference the node, each node probeseach available input output (IO) port for connected nearest-neighbornodes, each node autonomously negotiates with nearest-neighbor nodesconnected through one or more IO ports (wired, or wireless), each nodeautomatically communicates system state and network information withnearest neighbors, each node enters into one of the following states ofoperation: INIT, IDLE, RUN, DIAGNOSIS, ERROR, each node maintains aninternal clock (e.g., 64 bit epoch time in microseconds), each nodeprovides at least 100 nanosecond time synchronization negotiation withall input node devices, each node automatically discovers external nodedata transfer configurations, each node configures a port manager(including IO buffers) for each connected device, each node negotiates aminimal communication schedule with each connected node, and each nodenegotiates persistent future token protocols.

The following is an example of the steps involved in bringing up a localsensor network and does not necessarily reflect implementation detailsor performance optimizations. A node is powered up or connected with anew node. A node has at least two communication ports. At least one port(Port 0) defaults to an output role. At least one port defaults to aninput role. A node enters the INIT state and performs internalinitialization operations. The node initializes platform network levelfirewall rules and begins to monitor network traffic on Port0. The noderesponds to platform level network requests on Port0 (e.g. statusrequests).

A node enters the IDLE state and waits for further explicitinstructions. The node responds to platform level network requests onthe input ports. Optionally, the node automatically advances to the RUNstate.

A node enters the RUN state and polls all output ports looking forconnected devices. The node establishes a data transfer link withconnected devices and requests public identification data (via theplatform protocol). Optionally the node authenticates identificationfrom third party upstream. The node negotiates and selects token andencryption encapsulation protocols. Optionally, the node negotiates andselects internal access privileges.

The invention has been described with reference to various specific andpreferred embodiments and techniques. Nevertheless, it is understoodthat many variations and modifications may be made while remainingwithin the spirit and scope of the invention.

What is claimed is:
 1. A method for communication by a first node,comprising: maintaining an inbound routing table; establishing acommunication link with a second node via a first port; sending adiscovery packet to the second node via the first port, wherein thediscovery packet comprises a token value, and wherein the token valuecomprises a platform token value; generating a token for communicationwith the second node, wherein the token has a first token value;identifying a first portion of the first token value, wherein the firstportion of the first token value corresponds to a first token state ofthe token; and adding a first inbound routing entry to the inboundrouting table, wherein the first inbound routing entry maps the firsttoken state to the second node.
 2. The method of claim 1, furthercomprising: receiving a key exchange request from the second node;negotiating an encryption key with the second node; negotiating asession nonce with the second node; and negotiating a position offsetwith the second node, wherein the token is generated based on thesession nonce and the position offset, and wherein the token iscryptographically secured using the encryption key.
 3. The method ofclaim 1, further comprising: maintaining an outbound routing table;adding a first outbound routing entry to the outbound routing table,wherein the first outbound routing entry maps the second node to thefirst token state; and adding a second outbound routing entry to theoutbound routing table, wherein the second outbound routing entry mapsthe first token state to the first port.
 4. The method of claim 3,further comprising: obtaining a first message for the second node;identifying the first token state based on the first outbound routingentry; determining a first token value based on the first token state;identifying a first portion of the first token value; identifying asecond portion of the first token value; encrypting the first messageusing the second portion of the first token value; generating a firstpacket comprising a first token and a first payload, wherein the firsttoken is the first token state, and wherein the first payload is theencrypted first message; and sending the first packet to the second nodebased on the second outbound routing entry.
 5. The method of claim 1,wherein the token comprises a deterministic random number, wherein thetoken has a plurality of token states, and wherein each token statecorresponds to a disparate token value.
 6. The method of claim 5,wherein the token state changes with each communication, wherein thetoken state ratchets with each communication according to a ratchetingalgorithm.
 7. The method of claim 5, further comprising: establishing asecure channel with the second node using the token.
 8. The method ofclaim 7, wherein the secure channel is maintained based at least in parton the token state of the first node being synchronized with the a tokenstate of the second node.
 9. The method of claim 7, further comprising:generating a new token for each communication via the secure channel.10. The method of claim 1, wherein the communication link is one of ahardware link or a wireless link.
 11. A method for communication by afirst node, comprising: maintaining an inbound routing table;establishing a communication link with a second node via a first port;receiving a discovery packet from the second node via the first port,wherein the discovery packet comprises a token value, and wherein thetoken value comprises a platform token value; generating a token forcommunication with the second node, wherein the token has a first tokenvalue; identifying a first portion of the first token value, wherein thefirst portion of the first token value corresponds to a first tokenstate of the token; and adding a first inbound routing entry to theinbound routing table, wherein the first inbound routing entry maps thefirst token state to the second node.
 12. The method of claim 11,further comprising: sending a key exchange request from the second node;negotiating an encryption key with the second node; negotiating asession nonce with the second node; and negotiating a position offsetwith the second node, wherein the token is generated based on thesession nonce and the position offset, and wherein the token iscryptographically secured using the encryption key.
 13. The method ofclaim 11, further comprising: maintaining an outbound routing table;adding a first outbound routing entry to the outbound routing table,wherein the first outbound routing entry maps the second node to thefirst token state; and adding a second outbound routing entry to theoutbound routing table, wherein the second outbound routing entry mapsthe first token state to the first port.
 14. The method of claim 3,further comprising: obtaining a first message for the second node;identifying the first token state based on the first outbound routingentry; determining a first token value based on the first token state;identifying a first portion of the first token value; identifying asecond portion of the first token value; encrypting the first messageusing the second portion of the first token value; generating a firstpacket comprising a first token and a first payload, wherein the firsttoken is the first token state, and wherein the first payload is theencrypted first message; and sending the first packet to the second nodebased on the second outbound routing entry.
 15. The method of claim 11,wherein the token comprises a deterministic random number, wherein thetoken has a plurality of token states, and wherein each token statecorresponds to a disparate token value.
 16. The method of claim 15,wherein the token state changes with each communication, wherein thetoken state ratchets with each communication according to a ratchetingalgorithm.
 17. The method of claim 15, further comprising: establishinga secure channel with the second node using the token.
 18. The method ofclaim 17, wherein the secure channel is maintained based at least inpart on the token state of the first node being synchronized with the atoken state of the second node.
 19. The method of claim 17, furthercomprising: generating a new token for each communication via the securechannel.
 20. The method of claim 11, wherein the communication link isone of a hardware link or a wireless link.